package com.fuyd.pms.background.repository;

import com.fuyd.pms.entity.account.LocalAuth;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * 用户名密码认证
 * Created by fuyongde on 2015/12/25.
 */
public interface LocalAuthDao extends PagingAndSortingRepository<LocalAuth, String>, JpaSpecificationExecutor<LocalAuth> {
    /**
     * 根据用户名查询用户名密码认证信息
     *
     * @param username 用户名
     * @return 用户名密码认证信息
     */
    LocalAuth findByUsername(String username);
}
